$(function(){
	var length = 0;
	var aUrl = ["http://pic3.nipic.com/20090602/846299_152058002_2.jpg","http://pic12.nipic.com/20110212/2457331_151615433709_2.jpg","http://pic18.nipic.com/20111207/5252423_202255633000_2.jpg","http://f.hiphotos.baidu.com/image/pic/item/b58f8c5494eef01f27a058b4e3fe9925bc317d0e.jpg"];
	function noload(){
		length++;
		$('.loadtext').html(parseInt(length/aUrl.length*100)+"%");
		if(length == aUrl.length){
			$('.load,.loadIco1,.loadIco2').css('animation-play-state','paused');
			$('#loadimg_d').hide();
		}
	}
	for(var i=0;i<aUrl.length;i++){
		var oImg=new Image();
		oImg.onload = function(){
			noload();
		};
		oImg.onerror = function(){
			noload();
		}
		oImg.src=aUrl[i];
	}
});